class Quote < ActiveRecord::Base
  has_many :documents, :as => :documentable, :dependent => :destroy, :order => 'created_on'
  belongs_to :customer
  has_many :quote_resources, :dependent => :destroy
  has_many :resources, :through => :quote_resources, :order => 'last_name, first_name', :source => :employee
  
end
